// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '客户表',
        name: 'customermodel',
        url: "/customermodel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"CustomerCode":"","CustomerName":"","CustomerType":"","CustomerSource":"","CustomerContact":"","CustomerTel":"","CustomerEmail":"","DeptId":[],"CustomerPersonId":"","CustomerState":"","CustomerAddr":"","CustomerDesc":"","FinanceId":""};
    const editFormOptions = [[{"title":"客户编号","field":"CustomerCode"}],
                              [{"title":"客户名称","field":"CustomerName"}],
                              [{"dataKey":"所属行业","data":[],"title":"所属行业","field":"CustomerType","type":"select"}],
                              [{"dataKey":"客户来源","data":[],"title":"客户来源","field":"CustomerSource","type":"select"}],
                              [{"title":"联系人","field":"CustomerContact"}],
                              [{"title":"联系电话","field":"CustomerTel"}],
                              [{"title":"电子邮箱","field":"CustomerEmail"}],
                              [{"dataKey":"部门级联","data":[],"title":"销售部门","field":"DeptId","type":"cascader"}],
                              [{"dataKey":"用户列表","data":[],"title":"销售负责人","field":"CustomerPersonId","type":"select"}],
                              [{"dataKey":"status","data":[],"title":"状态","field":"CustomerState","type":"select"}],
                              [{"title":"客户地址","field":"CustomerAddr"}],
                              [{"title":"客户备注","field":"CustomerDesc"}],
                              [{"dataKey":"客户财务表","data":[],"title":"客户财务表","field":"FinanceId","type":"select"}]];
    const searchFormFields = {"Id":"","CustomerCode":"","CustomerName":"","CustomerType":"","CustomerSource":"","CustomerContact":"","CustomerTel":"","CustomerEmail":"","DeptId":[],"CustomerPersonId":"","CustomerState":"","CustomerAddr":"","CustomerDesc":"","IsDel":"","FinanceId":""};
    const searchFormOptions = [[{"title":"客户id","field":"Id","type":"number"}],[{"title":"客户编号","field":"CustomerCode"}],[{"title":"客户名称","field":"CustomerName"}],[{"dataKey":"所属行业","data":[],"title":"所属行业","field":"CustomerType","type":"number"}],[{"dataKey":"客户来源","data":[],"title":"客户来源","field":"CustomerSource"}],[{"title":"联系人","field":"CustomerContact"}],[{"title":"联系电话","field":"CustomerTel"}],[{"title":"电子邮箱","field":"CustomerEmail"}],[{"dataKey":"部门级联","data":[],"title":"销售部门","field":"DeptId"}],[{"dataKey":"用户列表","data":[],"title":"销售负责人","field":"CustomerPersonId","type":"number"}],[{"dataKey":"status","data":[],"title":"状态","field":"CustomerState"}],[{"title":"客户地址","field":"CustomerAddr"}],[{"title":"客户备注","field":"CustomerDesc"}],[{"title":"删除标识","field":"IsDel"}],[{"dataKey":"客户财务表","data":[],"title":"客户财务表","field":"FinanceId","type":"number"}]];
    const columns = [{field:'Id',title:'客户id',type:'bigint',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'CustomerCode',title:'客户编号',type:'string',width:110,align:'left',sort:true},
                       {field:'CustomerName',title:'客户名称',type:'string',width:110,align:'left'},
                       {field:'CustomerType',title:'所属行业',type:'int',bind:{ key:'所属行业',data:[]},width:110,align:'left'},
                       {field:'CustomerSource',title:'客户来源',type:'string',bind:{ key:'客户来源',data:[]},width:110,align:'left'},
                       {field:'CustomerContact',title:'联系人',type:'string',width:110,align:'left'},
                       {field:'CustomerTel',title:'联系电话',type:'string',width:110,align:'left'},
                       {field:'CustomerEmail',title:'电子邮箱',type:'string',width:110,align:'left'},
                       {field:'DeptId',title:'销售部门',type:'string',bind:{ key:'部门级联',data:[]},width:110,align:'left'},
                       {field:'CustomerPersonId',title:'销售负责人',type:'int',bind:{ key:'用户列表',data:[]},width:110,align:'left'},
                       {field:'CustomerState',title:'状态',type:'string',bind:{ key:'status',data:[]},width:110,align:'left'},
                       {field:'CustomerAddr',title:'客户地址',type:'string',width:110,align:'left'},
                       {field:'CustomerDesc',title:'客户备注',type:'string',width:110,align:'left'},
                       {field:'IsDel',title:'删除标识',type:'sbyte',width:120,align:'left'},
                       {field:'FinanceId',title:'客户财务表',type:'bigint',bind:{ key:'客户财务表',data:[]},width:120,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:120,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sort:true},
                       {field:'CreateID',title:'创建人id',type:'int',width:120,hidden:true,align:'left'},
                       {field:'ModifyID',title:'修改人id',type:'int',width:120,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}